package com.sg.business.permission.adapter.visitor;

import com.sg.business.model.ProjectRole;
import com.sg.business.permission.model.PermissionVisitorFactory;
import com.sg.business.resource.nls.Messages;

public class ProjectRoleVisitorFactory extends PermissionVisitorFactory {

	private ProjectRole projectRole;

	public ProjectRoleVisitorFactory(ProjectRole projectRole) {
		this.projectRole = projectRole;
	}

	protected String getName() {
		return  "[" + Messages.get().ProjectRole + "] " + projectRole.getLabel();
	}

	protected String getType() {
		return PROJECT_ROLE;
	}

	protected Object getId() {
		return projectRole.get_id();
	}

}
